<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>岗位调动报表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <h2><span>岗位调动报表</span></h2>	
  
  <body>
    
  
  	<form
	action="${pageContext.request.contextPath}/servlet/ReportManagementServlet?PostMobAll=1" method="post"> 
	开始日期
	<input name="startDate" type="date" /> 
	结束日期<input name="endDate" type="date" /> 
	 <input type="submit" value="开始查询" />
	</form>
	
    <table border="2" cellpadding="0" cellspacing="0" bordercolor="#337ab7" id="senfe" width="100%"> 
<thead> 
	<tr align="center" valign="middle"> 
	<th width="46" height="50" bgcolor="#FFFFFF" >序号</th> 
	<th width="81" bgcolor="#FFFFFF" >员工编号</th> 
	<th width="73" bgcolor="#FFFFFF" >原岗位名称</th> 
	<th width="73" bgcolor="#FFFFFF" >新岗位名称</th> 
	<th width="81" bgcolor="#FFFFFF" >姓名</th> 
	<th width="73" bgcolor="#FFFFFF" >性别</th> 
	<th width="73" bgcolor="#FFFFFF" >调动日期</th>
	<th width="73" bgcolor="#FFFFFF" >调动原因</th>

	
	</tr> 
</thead> 
<tbody id="group_one"> 
<c:forEach items="${postList}" var="item" varStatus="status">
 
            <tr align="center">
                   <td> <div>${status.index +1 }</div> </td>
                   <td> <div>${item.staff.s_id }</div> </td>
                   <td> <div>${item.oldPost.p_name }</div> </td> 
                   <td> <div>${item.newPost.p_name }</div> </td>
                   <td> <div>${item.staff.s_name }</div> </td>
                   <td>
                     <c:if test="${item.staff.s_sex == 1}">男</c:if>
				     <c:if test="${item.staff.s_sex == 2}">女</c:if>
				   </td>
                   <td> <div>${item.tp_date }</div> </td>
                   <td> <div>${item.tp_reason }</div> </td>
                
                   
              
    
   
    </tr>
    
    </c:forEach>
</table>

  </body>
</html>
